package com.example.imtoken.core.datas

import com.example.imtoken.R
import com.example.imtoken.entitys.app.WalletsEntity
import java.util.*

object DataUtils {

    private val testUrl =
        "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fb-ssl.duitang.com%2Fuploads%2Fitem%2F201607%2F30%2F20160730125028_S5iYa.thumb.700_0.jpeg&refer=http%3A%2F%2Fb-ssl.duitang.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1627178235&t=f95824b865f90842bb26ee5550a05843"

    fun getWalletList(start: Int = 0, end: Int = 10): MutableList<WalletsEntity> {
        val walletList = ArrayList<WalletsEntity>()
        for (i in start until end) {
            val walletsEntity = WalletsEntity()
            walletsEntity.id = i
            walletsEntity.imgResId = R.mipmap.src_lib_eui_icon_walletethereumnormal
            walletsEntity.name = "ENS$i"
            walletsEntity.content = "Ethereum Name Service$i"
            walletsEntity.money = 0
            walletsEntity.money1 = 0
            walletsEntity.imageUrl = testUrl
            walletsEntity.key = "0xAbB28B3Abf609f72050Bf29fF2f8969724ed1B98"
            walletList.add(walletsEntity)
        }
        return walletList
    }

}